package com.mt.mtyx.dto.activity;

import com.mt.mtyx.entity.activity.CouponRange;
import com.mt.mtyx.enums.CouponRangeType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 优惠券规则添加参数
 *
 * @author WMT
 * @Date 2023/7/25 20:04
 */
@Data
public class CouponRuleDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "优惠券id")
    private Long couponId;

    @ApiModelProperty(value = "范围类型")
    private CouponRangeType rangeType;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "使用门槛 0->没门槛")
    private BigDecimal conditionAmount;

    @ApiModelProperty(value = "优惠券参与的商品list")
    private List<CouponRange> couponRangeList;

    @ApiModelProperty(value = "优惠券范围描述")
    private String rangeDesc;
}
